package com.zhihao.zhihaopicturebackend.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Jackson
 * @create 2024/12/19 14:38
 * @description 通用删除请求类
 */
@ApiModel(description = "通用删除请求")
@Data
public class DeleteRequest implements Serializable {

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    @NotNull(message = "id 不能为空")
    @Min(value = 1, message = "id 必须大于等于0")
    private Long id;

    private static final long serialVersionUID = 1L;
}

